<?php
namespace catchAdmin\basics\model\search;

trait CountrySearch
{
    public function searchCountryNameAttr($query,$value,$data)
    {
        return $query->whereLike('country_name',$value);
    }

    public function searchCountryCodeAttr($query,$value,$data)
    {
        return $query->whereLike('country_code',$value);
    }
}